<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Voto Secreto</title>
	
	<link rel="icon" href="<?php echo $this->baseUrl('img/favicon.ico')?>" type="image/x-icon" />
	<link rel="shortcut icon" href="<?php echo $this->baseUrl('img/favicon.ico')?>" type="image/x-icon" />
	
	<link rel="stylesheet" href="<?php echo $this->compress()->css()?>" type="text/css" />
	
</head>
<body>
<div id="wrapper" class="<?php echo $this->user->getType()?>">
    <!-- header -->
	<div id="header">
		<a class="logo" href="/"><img src="<?php echo $this->baseUrl("/img/logo.png")?>" title="Delivery por Web" alt="Delivery por Web"/></a>
		<div id="userBar">
			<div class="right"></div>
			<div class="center">
				<ul class="welcomeLogged">
					<li class="name"><?php echo $this->user->name?></li>
					<li class="email"><?php echo $this->user->email?></li>
					<li class="logout"><a href="<?php echo $this->url(array('controller'=>'authentication','action'=>'logout'))?>" >Cerrar Sesión</a></li>
				</ul> 	
			</div>	
			<div class="left"></div>			
		</div>
	</div>
	<!-- end header -->
	<!-- content -->
	<div id="content">
		<?php $main =  $this->layout()->content; ?>
		<!-- sidebar -->
        <div id="sidebar">
        	<?php echo $this->placeholder('sidebar');?>
		</div>
		<div id="menu">
			<?php echo $this->navigation()->menu(); ?>
		</div>
		<div id="main" class="<?php echo $this->controller?>-<?php echo $this->action?>">
		<?php 
			
			echo $this->MyFlashMessenger();

			echo $main;
			
		?>
		</div>
		<div style="clear:both;"></div>
	</div>
	<!-- content -->	
	<div id="footer">		
		<div style="clear:both;"></div>
		<div id="copyright">&copy;<?php echo date('Y')?> <?php echo $this->translate('copyright')?></div>
		<div class="menu"> 
			<ul class="menu">	
				<li><a class="testRing">Test ringtone</a></li>
			</ul>
		</div>
		<div class="clear"></div>
	</div>	
<!--end wrapper-->
</div>
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=<?php echo $this->googleMapsKey?>"
         type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->compress()->js()?>"></script>
<?php 
$this->render('analytics.phtml');

$this->jQuery()->onLoadCaptureStart();
echo 'ping(60000);';
$this->jQuery()->onLoadCaptureEnd();

$this->jQuery()->onLoadCaptureStart();
?>
$('.zend_form input, .zend_form textarea').each(function() // Select all elements with the "tooltip" attribute
{
	var $text = $(this).parent().find(".element-description").text();

	if ( $text ){
		$(this).qtip({ 

			style: { name: 'blue', tip: true }, 
			content: { text: $text },
			show: { when: { event: 'focus' } },
			hide: { when: { event: 'blur' } },
			position: { corner: { tooltip: 'leftMiddle', target: 'rightMiddle' } }					

		});
	}
});

testRing();
<?php
$this->jQuery()->onLoadCaptureEnd();

echo $this->jQuery()->setRenderMode( ZendX_JQuery::RENDER_SOURCES );
echo $this->jQuery()->setRenderMode( ZendX_JQuery::RENDER_JAVASCRIPT );
echo $this->jQuery()->setRenderMode( ZendX_JQuery::RENDER_JQUERY_ON_LOAD );

?>
</body>   
</html>